<?php 
function __autoload($className)
{
	foreach(glob(dirname(dirname(__FILE__)).'/*',GLOB_ONLYDIR) as $folder)
	{
		$classFile = $folder.'/'.$className.'.php';
		if(is_file($classFile))
		{
			require_once $classFile;
			return true;
		}
	}
	return false;
}
?>